module.exports = {
  target: "node",
  mode: 'production',
  entry: './commander.js',
  output: {
    path: __dirname + '/bin',
    filename: 'commander',
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
            loader: 'babel-loader',
            options: {
                presets: ['@babel/preset-env']
            }
        }
      },
    ],
  }
};